﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ECommerce.Model.Order
{
    public partial class ECOrderInfo
    {
        public Func<long, List<ECOrderProductInfo>> GetProducts;
        private List<ECOrderProductInfo> _products;
        public List<ECOrderProductInfo> Products
        {
            get
            {
                if (_products == null)
                {
                    _products = GetProducts(this.ID);
                }
                return _products;
            }
            set
            {
                _products = value;
            }
        }
    }
}
